package com.wsd.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * Category entity. @author MyEclipse Persistence Tools
 */

public class Category implements java.io.Serializable {

	// Fields

	private Integer CId;
	private Category parent;
	private String CName;
	private Integer CLevel;
	private Set productses = new HashSet(0);
	private Set categories = new HashSet(0);
	
	private Integer lft;//左节点值
	private Integer rgt;//右节点值

	// Constructors

	/** default constructor */
	public Category() {
	}

	/** minimal constructor */
	public Category(String CName, Integer CLevel) {
		this.CName = CName;
		this.CLevel = CLevel;
	}

	/** full constructor */
	public Category(Category category, String CName, Integer CLevel,
			Set productses, Set categories) {
		this.parent = parent;
		this.CName = CName;
		this.CLevel = CLevel;
		this.productses = productses;
		this.categories = categories;
	}

	// Property accessors

	public Integer getCId() {
		return this.CId;
	}

	public void setCId(Integer CId) {
		this.CId = CId;
	}

	public Category getParent() {
		return parent;
	}

	public void setParent(Category parent) {
		this.parent = parent;
	}

	public String getCName() {
		return this.CName;
	}

	public void setCName(String CName) {
		this.CName = CName;
	}

	public Integer getCLevel() {
		return this.CLevel;
	}

	public void setCLevel(Integer CLevel) {
		this.CLevel = CLevel;
	}

	public Set getProductses() {
		return this.productses;
	}

	public void setProductses(Set productses) {
		this.productses = productses;
	}

	public Set getCategories() {
		return this.categories;
	}

	public void setCategories(Set categories) {
		this.categories = categories;
	}

	public Integer getLft() {
		return lft;
	}

	public void setLft(Integer lft) {
		this.lft = lft;
	}

	public Integer getRgt() {
		return rgt;
	}

	public void setRgt(Integer rgt) {
		this.rgt = rgt;
	}
	
	

}